//
//  SMSRequest.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/2/26.
//

#import "Item1GetUserInfoRequest.h"

@implementation Item1GetUserInfoRequest

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodGET;
}

//- (NSString *)queryString {
//    NSDictionary *query = [RequestCommonParameter parameter];
//    NSMutableArray *arr = [NSMutableArray array];
//    for (NSString *key in query.allKeys) {
//        [arr addObject:[NSString stringWithFormat:@"%@=%@", key, query[key]]];
//    }
//    NSString *str = [arr componentsJoinedByString:@"&"];
//    return [NSString stringWithFormat:@"?%@", str];
//}
- (NSString *)requestUrl {
    //return [@"/sulitloanapi/slu/become" stringByAppendingString:self.commonQuery];
    NSString *uri = [@"/sulitloanapi/slu/become" stringByAppendingString:self.commonQuery];
    NSCharacterSet *allowedCharacters = [NSCharacterSet URLQueryAllowedCharacterSet];
    return [uri stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters];
}

//- (NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary {
//    return [RequestCommonParameter parameter];
//}
- (id)requestArgument {
    return @{
        @"scenery": self.scenery ?: @"",
        @"academicians": @"academicians",
    };
}

@end
